package com.syp.auth.domain;

public class ValidateResult {

	/**
	 * 校验是否通过
	 */
	private boolean valid = true;
	/**
	 * 错误码
	 */
	private String ecode;
	/**
	 * 错误消息
	 */
	private String emsg;

	public ValidateResult() {

	}

	public ValidateResult(boolean valid) {

	}

	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public String getEcode() {
		return ecode;
	}

	public void setEcode(String ecode) {
		this.ecode = ecode;
	}

	public String getEmsg() {
		return emsg;
	}

	public void setEmsg(String emsg) {
		this.emsg = emsg;
	}

	public ValidateResult valid(boolean valid) {
		this.valid = valid;
		return this;
	}

	public ValidateResult ecode(String ecode) {
		this.ecode = ecode;
		return this;
	}

	public ValidateResult emsg(String emsg) {
		this.emsg = emsg;
		return this;
	}

}
